CancelButtonClicked Event (Window Object)

Sample Code - CancelButtonClicked Event

The CancelButtonClicked event occurs when the Cancel button is clicked.

Syntax

Event CancelButtonClicked (useDefault As Boolean)

Parameter

useDefault

Specifies Boolean value indicating whether the default settings should be used. Assign useDefault = FALSE if not using default behavior defined in CPEAUT (that is, if you do not want the cancel button to cancel moving to the last page or processing the report).

Remarks

Before enabling this event, the HasCancelButton property of the PrintWindowOptions Object, must be set to TRUE. This event is enabled by using the PrintWindowButtonEnabled property of the EventInfo Object, obtained through the EventInfo property of the Report Object. For more information, see Object Model Events.



Seagate Software IMG Holdings, Inc.
http://www.seagatesoftware.com
Support services:
http://support.seagatesoftware.com